//
//  WUMenuView.h
//  kztool
//
//  Created by 毛韶谦 on 16/7/11.
//  Copyright © 2016年 wutan. All rights reserved.
//

#import <UIKit/UIKit.h>


@class WUMenuView;

extern NSString *const MenuViewDidmissedNotificationName;

@protocol WUMenuViewDelegate <NSObject>

@optional
-(void)menuViewDismissed;

@end

@interface WUMenuView : UIView

@property(nonatomic,assign,readonly) CGRect startFrame;
@property(nonatomic,assign,readonly) CGRect endFrame;

@property(nonatomic,strong,readonly) UIView *contentView;
@property(nonatomic,weak) id<WUMenuViewDelegate> delegate;

///关闭后是否从父控件删除 default YES
@property(nonatomic,assign) BOOL isRemoveWithDismiss;


-(instancetype)init __attribute__((unavailable("WUMenuView cannot be created directly")));
-(instancetype)initWithFrame:(CGRect)frame __attribute__((unavailable("WUMenuView cannot be created directly")));

/**
 创建
 @param startFrame 动画起始位置
 @param endFrame   动画结束位置
 */
-(instancetype)initWithStartFrame:(CGRect)startFrame endFrame:(CGRect)endFrame;
-(void)show;
-(void)dismiss;

@end
